﻿using EventMgrLib;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VisionRoc.Core
{
    public class LogEvent : PubSubEvent<LogPayload> { }

    public class LogPayload
    {
        public string SolutionName { get; set; }
       
        public int Level { get; set; }

        public string LogMessage { get; set; }
    }

    public class ImageLogEvent : PubSubEvent<ImageLogPayload> { }

    public class ImageLogPayload
    {
        public string SolutionName { get; set; }

        public int Level { get; set; }

        public string LogMessage { get; set; }
    }

    public class SystemEvent : PubSubEvent<Systemload> { }

    /// <summary>
    /// 系统事件
    /// </summary>
    public class Systemload
    {
        public string SolutionName { get; set; }

        public string Descr { get; set; }
    }


    public class DevData : PubSubEvent<DevDataHandle> { }

    public class DevDataHandle
    {
        public string SolutionName { get; set; }

        /// <summary>
        /// 备注说明
        /// </summary>
        public string Descr { get; set; }
    }

    public class ResultNum : PubSubEvent<ResultNumber> { }

    public class ResultNumber
    {
        public string SolutionName { get; set; }
    }

    public class SerialPortInfo : PubSubEvent<SerialPortMessage> { }

    public class SerialPortMessage
    {
        public string SolutionName { get; set; }

        public string Msg { get; set; }
    }


    public class DispChartEvent : PubSubEvent<DispChartDData> { }

    public class DispChartDData
    {
        public string SolutionName { get; set; }

     
    }


    public class DispDataEvent : PubSubEvent<DispData> { }

    public class DispData
    {
        public string SolutionName { get; set; }


    }
}
